import request from '@/utils/request.js'
/**
 * 获取文章新闻列表
 * @param {*} id 频道ID
 * @param {*} timestamp 时间戳
 */
export const reqgetArticleList = (id, timestamp) => {
  return request({
    url: '/v1_0/articles',
    params: {
      channel_id: id,
      timestamp
    }
  })
}

/**
 * 不感兴趣的文章
 * @param {*} articleId 文章id
 */
export const reqDislikeArticel = (articleId) => {
  return request({
    method: 'post',
    url: '/v1_0/article/dislikes',
    data: {
      target: articleId
    }
  })
}
/**
 * 举报文章
 * @param {*} articleId 文章id
 * @param {*} type 举报类型
 */
export const reqRepotrArticle = (articleId, type) => {
  return request({
    method: 'post',
    url: '/v1_0/article/reports',
    data: {
      target: articleId,
      type
    }
  })
}
